package com.ag.oa.core.service;

import com.ag.oa.core.entity.vo.NewsVO;

import java.util.List;

/**
 * Author:   wjc
 * Date:     2021/10/25
 * Description:
 */
public interface INewsService {

    void saveNewsByAdmin(Integer id, String title, String contentURL, String coverURL, String content, Integer queue);

    List<NewsVO> getForNewsDataList(Integer topNum, Integer page, Integer pageSize);

    NewsVO getNewsInfoById(Integer id);

    void delNewsById(Integer id);

    int getTotalRecordsCount();

    void updateSticky(Integer sticky, Integer id);

}
